package com.panda.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author: panda
 * @Date: 2022-05-18 15:14
 * @Description: 文章详情接口返回视图类
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("文章详情")
public class ArticleDetailVo {

    @ApiModelProperty("文章ID")
    private Long id;

    //标题
    @ApiModelProperty("文章标题")
    private String title;

    @ApiModelProperty("文章内容")
    private String content;

    //分类id
    @ApiModelProperty("文章分类")
    private Long categoryId;

    //所属分类名
    @ApiModelProperty("文章分类名")
    private String categoryName;

    //缩略图
    @ApiModelProperty("文章首图")
    private String thumbnail;

    //访问量
    @ApiModelProperty("文章访问量")
    private Long views;

    @ApiModelProperty("文章创建时间")
    private Date createTime;

    @ApiModelProperty("文章点赞量")
    private Integer likes;

    @ApiModelProperty("文章点赞量")
    private String username;

    @ApiModelProperty("文章点赞量")
    private String avatar;

}
